import { BasicPageParams, BasicFetchResult } from '/@/api/model/baseModel';
export interface DepartmentItem{
    id:string,
    deptName:string,
    gmtCreate:string,
    state:number,
    pid:string,
    children:DepartmentItem[]
}
export type ListDepartmentParams =  {
    // deptName?:string,
    // state?:number,
    hospitalId?:string
}


export type DepartmentParams = {
    pid:string,
    deptName:string,
    hospitalId:string,
}

export type DepartmentOption ={
    id:string,
    deptName:string,
    hospitalId:string,
}

export type DepartmentGetResultModel = BasicFetchResult<DepartmentItem>

export type DepartmentOptionGetResultModel = BasicFetchResult<DepartmentOption>